#ifndef CONFIG001_H
#define CONFIG001_H
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
using namespace std;
/*

FreeWayId 123
FreeWayAccess 321
FreeWayResp 312
*/


class config001
{
    public:
        static config001 * getInstance();
        virtual ~config001();
        bool init();
        bool loadConfig();

        inline const map<string,string> & getConfigMap()
        {
            return configMap;
        }

    protected:
    private:
        static config001 * singleConfig;
        map<string,string> configMap;
        config001();
        fstream m_file;
};

#endif // CONFIG001_H
